import java.util.Arrays;

public class TestData {

	public static void main(String[] args) {
		//System.out.println(String.valueOf(System.currentTimeMillis()).substring(8));
		String[] str={"a","v","2"};
		//System.out.println(useList(str, 3));
		System.out.println(useList1(str, String.valueOf(0)));
	}
	
	public static boolean useList(int[] arr, int targetValue) {
	   for (int i : arr) {
		if(0==i){
			return true;
		}
	   }
	   return false;
	}
	
	public static boolean useList1(String[] arr, String targetValue) {
		return Arrays.asList(arr).contains(targetValue);
	}

}
